<?xml version="1.0" encoding="UTF-8"?>
<!--
To change this template, choose Tools | Templates
and open the template in the editor.
-->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:p="http://primefaces.prime.com.tr/ui">
    <h:head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
        <h:outputStylesheet library="css" name="layout.css"/>
        <link type="text/css" rel="stylesheet" href="#{request.contextPath}/resources/css/start/skin.css"/>
        <link type="text/css" rel="stylesheet" href="#{request.contextPath}/resources/css/default.css"/>


        <title>Transport Management Systems : Login</title>
    </h:head>
    <body>
        <table  width="100%" style="margin-top: 100px;border: none;">
            <tr>
                <td  valign="middle" align="center" >
                    <p:panel id="entryPanel" header="TMS v1.0 - Login" style="width:400px;height: 200px;" >
                        <p:growl globalOnly="true"/>
                        <h:form >
                            <br/>
                            <input type="hidden" name="orginal_request_uri" id="orginal_request_uri" value="#{loginBean.orginalRequestURI(request)}"/>
                            <h:panelGrid columns="3">
                                <h:outputLabel value="User ID" for="loginId" />
                                <h:inputText id="loginId" value="#{loginBean.userId}" requiredMessage="* Required" required="true"/>
                                <p:message for="loginId" />
                                <h:outputLabel value="Password" for="passwd" />
                                <h:inputSecret id="passwd" value="#{loginBean.password}" requiredMessage="* Required" required="true"/>
                                <p:message for="passwd" />
                            </h:panelGrid>

                            <br/>
                            <p:commandButton  action="#{loginBean.doLogin}" value="Login" ajax="false"/>
                        </h:form>
                    </p:panel>
                </td>
            </tr>
        </table>


    </body>
</html>
